<template>
	<view>
		<view class="navBar">

			<view class="navBarItem">
				<view class="logo">
					<image src="../../static/images/10.jpg" mode="widthFix"></image>
				</view>
				<view class="search" @click="toSearch">了解最新防疫消息<text class="iconfont icon-sousuo"></text></view>
				<view class="logo">
					<image src="../../static/images/10.jpg" mode="widthFix"></image>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			toSearch() {
				uni.navigateTo({
					url: "../../pages/search/search"
				})
				
			}
		}
	}
</script>

<style scoped lang="scss">
	.navBar {
		width: 100%;
		height: 60rpx;
		box-sizing: border-box;
		padding: 0 20rpx;

		.navBarItem {
			display: flex;
			height: 60rpx;
			.logo {
				image {
					width: 60rpx;
					height: 60rpx;
					border-radius: 50%;
				}
			}

			.search {
				flex: 1;
				margin: 0 20rpx;
				border: 1px solid #ccc;
				text-align: center;
				line-height: 58rpx;
				font-size: 26rpx;
				border-radius: 30rpx;
				color: #666;
				background-color: #fff;
				text {
					font-size: 28rpx;
					margin-left: 6rpx;
				}
			}
		}
	}
</style>
